package com.atguigu.a_static;

public class Student {
    //属性
    String name;
    static String graduateFrom; //毕业院校

    //自动生成无参和全参构造

    public Student() {
    }

    public Student(String name, String graduateFrom) {
        this.name = name;
        this.graduateFrom = graduateFrom;
    }

    //展示属性值的方法
    public void show(){
        System.out.println(name + " --- " + graduateFrom);
    }
}
